<template>
	<view class="cardContainer">
		<view class="titleContainer">
			<view class="titleContent">{{title}}</view>
			<view><slot name="titleExt"></slot></view>
		</view>
		<slot name="content">
		</slot>
	</view>
</template>

<script>
	export default {
		name: "self-card",
		props: {
			title: ''
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.cardContainer {
		flex-shrink: 0;
		border-radius: 12px;
		background: $uni-bg-color;
		padding: 1rem;
		
		.titleContainer{
			display: flex;
			justify-content: space-between;
		}

		.titleContent {
			color: $uni-text-title-color;
			font-family: "PingFang SC";
			font-size: 18px;
			font-style: normal;
			font-weight: 600;
			line-height: 26px;
		}
	}
</style>